package domain.impl;

import java.util.ArrayList;
import java.util.List;

/**
 * Author: nml
 * 29/03/2009 - 14:01:50
 */
@SuppressWarnings("serial")
public class Listado extends AbstractBusinessObject {

    private List<Material> materiales = new ArrayList<Material>();

    //private Address billingAddress = new Address();

    public List<Material> getMateriales() {
        return materiales;
    }

    public void setMateriales(List<Material> other) {
        materiales = other;
    }

    /*
    public Address getBillingAddress() {
        return billingAddress;
    }
    public void setBillingAddress(Address other) {
        billingAddress = other;
     }*/

    public double getTotal() {
        double total = 0;
        for (Material material : materiales) {
            total += material.getPesoReal().doubleValue();
        }
        return total;
    }

}
